package org.cll.lagou.study.imvc.config;

import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Pattern;

/**
 * 描述信息:
 *
 * @author CLL
 * @version 1.0
 * @date 2020/6/21 17:06
 */
public class HandlerMethod {

    private Object controller;

    private Method method;

    private Pattern url;

    private Map<String, Integer> paramIndexMapping;

    private String securityName;

    public HandlerMethod(Object controller, Method method, Pattern url, String securityName) {
        this.controller = controller;
        this.method = method;
        this.url = url;
        this.securityName = securityName;
        this.paramIndexMapping = new HashMap<>();
    }

    public Object getController() {
        return controller;
    }

    public void setController(Object controller) {
        this.controller = controller;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public Pattern getUrl() {
        return url;
    }

    public void setUrl(Pattern url) {
        this.url = url;
    }

    public Map<String, Integer> getParamIndexMapping() {
        return paramIndexMapping;
    }

    public void setParamIndexMapping(Map<String, Integer> paramIndexMapping) {
        this.paramIndexMapping = paramIndexMapping;
    }

    public String getSecurityName() {
        return securityName;
    }

    public void setSecurityName(String securityName) {
        this.securityName = securityName;
    }
}
